package com.pakazaka.testTileSystem;

import com.pakazaka.enums.TilePropertyType;

/**
 *
 * @author Riseremi
 */
public class DoorTile extends Tile {

    private boolean opened;

    public DoorTile(int id, int durability, TilePropertyType[] properties, boolean opened) {
        super(id, durability, properties);
        this.opened = opened;
    }

    public void open() {
        opened = true;
    }

    public void close() {
        opened = false;
    }

}
